<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>联系我们 - 学知题库</title>
    <link href="../assets/css/app.css" rel="stylesheet">
    <link href="../assets/css/font-awesome.min.css" rel="stylesheet">
    <script src="../assets/js/chart.umd.min.js"></script>
    
    <!-- Tailwind 配置 - 已合并到公共配置文件 -->
    <!-- 
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        secondary: '#36CBCB',
                        accent: '#FF7D00',
                        neutral: '#F5F7FA',
                        'neutral-dark': '#4E5969',
                        success: '#00B42A',
                        warning: '#FF7D00',
                        danger: '#F53F3F',
                    },
                    fontFamily: {
                        inter: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    -->
    
    <!-- 工具类样式 - 已合并到 src/input.css -->
    <!-- 
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .scrollbar-hide {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
            .scrollbar-hide::-webkit-scrollbar {
                display: none;
            }
            .text-shadow {
                text-shadow: 0 2px 4px rgba(0,0,0,0.1);
            }
            .card-hover {
                transition: all 0.3s ease;
            }
            .card-hover:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 20px rgba(0,0,0,0.08);
            }
            .bg-gradient-primary {
                background: linear-gradient(135deg, #165DFF 0%, #0E42B3 100%);
            }
            .progress-ring-circle {
                transition: stroke-dashoffset 0.35s;
                transform: rotate(-90deg);
                transform-origin: 50% 50%;
            }
            .animate-float {
                animation: float 3s ease-in-out infinite;
            }
            @keyframes float {
                0% { transform: translateY(0px); }
                50% { transform: translateY(-10px); }
                100% { transform: translateY(0px); }
            }
        }
    </style>
    -->
</head>
<body class="bg-gray-50 font-inter text-gray-800 min-h-screen flex flex-col">
    <!-- 顶部导航栏 -->
    <header class="bg-white shadow-sm sticky top-0 z-50 transition-all duration-300">
        <div class="container mx-auto px-4 py-3 flex items-center justify-between">
            <div class="flex items-center space-x-2">
                <a href="#" class="flex items-center">
                    <i class="fa fa-graduation-cap text-primary text-2xl mr-2"></i>
                    <h1 class="text-xl font-bold text-gray-800">学知题库</h1>
                </a>
            </div>
            
            <div class="hidden md:flex items-center space-x-6">
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">首页</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">题库</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">学习路径</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">模拟考试</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">关于我们</a>
                <a href="#" class="text-primary font-medium border-b-2 border-primary pb-1">联系我们</a>
            </div>
            
            <div class="flex items-center space-x-4">
                <div class="relative hidden md:block">
                    <input type="text" placeholder="搜索题目、知识点或教材..." 
                           class="pl-10 pr-4 py-2 rounded-full bg-gray-100 focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all w-64">
                    <i class="fa fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
                </div>
                
                <div class="flex space-x-2">
                    <button class="px-4 py-2 bg-white text-primary border border-primary rounded-lg hover:bg-primary/5 transition-colors">登录</button>
                    <button class="px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors">注册</button>
                </div>
            </div>
        </div>
    </header>

    <!-- 主内容区（联系我们页面） -->
    <main class="flex-1 py-8 bg-gray-50">
        <div class="container mx-auto px-4">
            <!-- 页面标题 -->
            <div class="mb-8">
                <h2 class="text-2xl font-bold text-gray-800">联系我们</h2>
                <p class="text-gray-500 mt-1">我们期待倾听您的需求和建议</p>
            </div>
            
            <!-- 联系我们主内容 -->
            <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
                <!-- 联系方式卡片 -->
                <div class="lg:col-span-1 space-y-6">
                    <!-- 公司地址 -->
                    <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                        <div class="flex items-center mb-4">
                            <div class="w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary">
                                <i class="fa fa-map-marker text-xl"></i>
                            </div>
                            <h3 class="ml-4 font-bold text-lg">公司地址</h3>
                        </div>
                        <p class="text-gray-600">北京市海淀区中关村大街1号</p>
                        <div class="mt-4">
                            <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3052.0014273124314!2d116.3183124154252!3d39.98885104448386!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x35f1ad03b06d44a9%3A0xc0c0c0c0c0c0c0c0!2sTsinghua%20University!5e0!3m2!1sen!2sus!4v1623401542150!5m2!1sen!2sus" 
                                    width="100%" height="200" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
                        </div>
                    </div>
                    
                    <!-- 联系方式 -->
                    <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                        <div class="flex items-center mb-4">
                            <div class="w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary">
                                <i class="fa fa-phone text-xl"></i>
                            </div>
                            <h3 class="ml-4 font-bold text-lg">联系方式</h3>
                        </div>
                        <div class="space-y-3">
                            <div class="flex items-center">
                                <i class="fa fa-phone text-primary mr-3 w-4"></i>
                                <span class="text-gray-600">400-123-4567</span>
                            </div>
                            <div class="flex items-center">
                                <i class="fa fa-envelope text-primary mr-3 w-4"></i>
                                <span class="text-gray-600">contact@xuezhi.com</span>
                            </div>
                            <div class="flex items-center">
                                <i class="fa fa-clock-o text-primary mr-3 w-4"></i>
                                <span class="text-gray-600">周一至周日 9:00-21:00</span>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 关注我们 -->
                    <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                        <div class="flex items-center mb-4">
                            <div class="w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary">
                                <i class="fa fa-weixin text-xl"></i>
                            </div>
                            <h3 class="ml-4 font-bold text-lg">关注我们</h3>
                        </div>
                        <p class="text-gray-600 mb-4">扫描二维码，关注我们的官方公众号</p>
                        <div class="flex justify-center">
                            <div class="w-32 h-32 bg-gray-100 rounded-lg flex items-center justify-center">
                                <i class="fa fa-qrcode text-5xl text-gray-400"></i>
                            </div>
                        </div>
                        <div class="mt-4 flex justify-center">
                            <p class="text-sm text-gray-500">学知题库公众号</p>
                        </div>
                        <div class="mt-6">
                            <h4 class="font-medium mb-3">社交媒体</h4>
                            <div class="flex space-x-3">
                                <a href="#" class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
                                    <i class="fa fa-weibo"></i>
                                </a>
                                <a href="#" class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
                                    <i class="fa fa-wechat"></i>
                                </a>
                                <a href="#" class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
                                    <i class="fa fa-qq"></i>
                                </a>
                                <a href="#" class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
                                    <i class="fa fa-github"></i>
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 留言表单 -->
                <div class="lg:col-span-2">
                    <div class="bg-white rounded-xl shadow-sm p-6">
                        <h3 class="font-bold text-lg mb-6 flex items-center">
                            <i class="fa fa-comment text-primary mr-2"></i>留言反馈
                        </h3>
                        
                        <form class="space-y-4">
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">您的姓名</label>
                                    <input type="text" placeholder="请输入您的姓名" 
                                           class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary/30 focus:border-primary outline-none transition-colors">
                                </div>
                                
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">联系电话</label>
                                    <input type="tel" placeholder="请输入您的联系电话" 
                                           class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary/30 focus:border-primary outline-none transition-colors">
                                </div>
                            </div>
                            
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-1">电子邮箱</label>
                                <input type="email" placeholder="请输入您的电子邮箱" 
                                       class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary/30 focus:border-primary outline-none transition-colors">
                            </div>
                            
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-1">留言类型</label>
                                <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary/30 focus:border-primary outline-none transition-colors">
                                    <option value="">请选择留言类型</option>
                                    <option value="suggestion">建议反馈</option>
                                    <option value="question">使用咨询</option>
                                    <option value="complaint">投诉举报</option>
                                    <option value="cooperation">商务合作</option>
                                    <option value="other">其他问题</option>
                                </select>
                            </div>
                            
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-1">留言内容</label>
                                <textarea rows="5" placeholder="请输入您的留言内容..." 
                                          class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary/30 focus:border-primary outline-none transition-colors"></textarea>
                            </div>
                            
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-1">上传附件（可选）</label>
                                <div class="mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-lg hover:border-primary transition-colors">
                                    <div class="space-y-1 text-center">
                                        <i class="fa fa-cloud-upload text-3xl text-gray-400"></i>
                                        <div class="flex text-sm text-gray-600">
                                            <label for="file-upload" class="relative cursor-pointer bg-white rounded-md font-medium text-primary hover:text-primary/80">
                                                <span>上传文件</span>
                                                <input id="file-upload" name="file-upload" type="file" class="sr-only">
                                            </label>
                                            <p class="pl-1">或拖放文件</p>
                                        </div>
                                        <p class="text-xs text-gray-500">
                                            支持PNG, JPG, PDF等格式，最大2MB
                                        </p>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="flex items-start">
                                <div class="flex items-center h-5">
                                    <input id="privacy" name="privacy" type="checkbox" class="focus:ring-primary h-4 w-4 text-primary border-gray-300 rounded">
                                </div>
                                <div class="ml-3 text-sm">
                                    <label for="privacy" class="text-gray-600">我已阅读并同意<a href="#" class="text-primary hover:underline">《隐私政策》</a></label>
                                </div>
                            </div>
                            
                            <div>
                                <button type="button" class="w-full px-4 py-3 bg-primary text-white rounded-lg hover:bg-primary/90 transition-colors font-medium">
                                    提交留言
                                </button>
                            </div>
                        </form>
                    </div>
                    
                    <!-- 常见问题 -->
                    <div class="bg-white rounded-xl shadow-sm p-6 mt-6">
                        <h3 class="font-bold text-lg mb-6 flex items-center">
                            <i class="fa fa-question-circle text-primary mr-2"></i>常见问题
                        </h3>
                        
                        <div class="space-y-4">
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>如何注册学知题库账号？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100">
                                    <p class="text-gray-600">您可以通过手机号或电子邮箱注册学知题库账号，注册时需设置6-20位密码。完成注册后，建议您完善个人信息以获取更个性化的学习推荐。</p>
                                </div>
                            </div>
                            
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>如何查看我的学习记录？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100 hidden">
                                    <p class="text-gray-600">登录账号后，点击页面顶部的个人头像，选择"学习记录"即可查看您的做题历史、正确率统计和学习进度。您还可以导出学习报告进行更详细的分析。</p>
                                </div>
                            </div>
                            
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>如何联系客服？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100 hidden">
                                    <p class="text-gray-600">您可以通过以下方式联系我们的客服团队：<br>1. 在APP内点击"我的-帮助与反馈"<br>2. 拨打客服热线：400-123-4567<br>3. 发送邮件至：contact@xuezhi.com<br>我们的客服团队将在工作时间内尽快回复您。</p>
                                </div>
                            </div>
                            
                            <div class="border border-gray-100 rounded-lg overflow-hidden">
                                <button class="w-full flex items-center justify-between p-4 text-left font-medium hover:bg-gray-50 transition-colors">
                                    <span>如何使用错题本功能？</span>
                                    <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                                </button>
                                <div class="p-4 bg-gray-50 border-t border-gray-100 hidden">
                                    <p class="text-gray-600">当您做题时，系统会自动将错题加入您的错题本。您可以在"我的-错题本"中查看所有错题，并进行针对性练习。错题本支持按科目、时间和难度筛选，帮助您高效复习。</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- 页脚（沿用原有风格） -->
    <footer class="bg-gray-800 text-white py-12 mt-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <div class="flex items-center mb-4">
                        <i class="fa fa-graduation-cap text-primary text-2xl mr-2"></i>
                        <h3 class="text-xl font-bold">学知题库</h3>
                    </div>
                    <p class="text-gray-400 mb-4">智能教育资源平台，助力学生高效学习</p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-weibo"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-wechat"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-qq"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-github"></i>
                        </a>
                    </div>
                </div>
                
                <div>
                    <h4 class="text-lg font-medium mb-4">快速链接</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">首页</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">题库</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">学习路径</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">模拟考试</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">关于我们</a></li>
                        <li><a href="#" class="text-white font-medium">联系我们</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-lg font-medium mb-4">帮助中心</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">常见问题</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用指南</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">意见反馈</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">联系我们</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">隐私政策</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-lg font-medium mb-4">联系我们</h4>
                    <ul class="space-y-2">
                        <li class="flex items-center">
                            <i class="fa fa-map-marker text-primary mr-2"></i>
                            <span class="text-gray-400">北京市海淀区中关村大街1号</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-phone text-primary mr-2"></i>
                            <span class="text-gray-400">400-123-4567</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-envelope text-primary mr-2"></i>
                            <span class="text-gray-400">contact@xuezhi.com</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-clock-o text-primary mr-2"></i>
                            <span class="text-gray-400">周一至周日 9:00-21:00</span>
                        </li>
                    </ul>
                </div>
            </div>
            
            <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
                <p>&copy; 2025 学知题库 版权所有 | 京ICP备12345678号</p>
            </div>
        </div>
    </footer>
</body>
</html>